package cn.edu.dgut.css.springboottest2;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @Author:GooGa
 * @Data:2020/10/26 23:50
 */
@SuppressWarnings("unused")
@ConfigurationProperties(prefix = "googa.auto")
public class CustomProperties {
    /**
     * 自动配置类是否生效
     */
    private boolean enable;

    public boolean isEnable(){
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }
}
